package com.eddie.decorator;

/**
 * @author Eddie
 * @date 2022/08/01 09:25
 **/
public class CoffeeBar {
    public static void main(String[] args) {
        //1、先点一份LongBlack
        Drink order = new LongBlack();

        //2、order 加入一份牛奶
        order = new Milk(order);

        //3、order加入一份巧克力
        order = new Chocolate(order);

        //4、再加入一份
        order = new Chocolate(order);

        System.out.println(order.cost());

    }
}
